﻿using Abp.AutoMapper;
using Abp.Modules;
using Abp.Reflection.Extensions;
using Vecen.BangChuang.Authorization;
using Vecen.BangChuang.BangChuang.Mall.Dtos;

namespace Vecen.BangChuang
{
    /// <summary>
    /// 
    /// </summary>
    [DependsOn(
        typeof(BangChuangCoreModule))]
    public class BangChuangApplicationModule : AbpModule
    {
        /// <summary>
        /// 
        /// </summary>
        public override void PreInitialize() {
            Configuration.Authorization.Providers.Add<BangChuangAuthorizationProvider>();
        }

        /// <summary>
        /// 
        /// </summary>
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(BangChuangApplicationModule).GetAssembly());
        }
    }
}